package com.floating.window;

import com.lxb.window.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

/**
 * @author Thunder
 *
 */
public class ButtonTest extends LinearLayout {

	public ButtonTest(Context context) {
		super(context);
		initView(context);
	}
	public ButtonTest(Context context, AttributeSet attrs) {
		super(context, attrs);
		initView(context);
	}

	private Button button1, button2,button3;

	private void initView(Context context) {
		// TODO Auto-generated method stub
		View.inflate(context, R.layout.button, this);
		button1 = (Button) findViewById(R.id.button1);
		button2 = (Button) findViewById(R.id.button2);
		button3 = (Button) findViewById(R.id.button3);
		button2.setVisibility(View.INVISIBLE);
		button3.setVisibility(View.INVISIBLE);
	}
	
	public void setButton1Text(String t){
		button1.setText(t);
	}
	public void setButton2Text(String t){
		button2.setText(t);
	}
	public View  button1(){
		return button1;
	}
	
	public View  button2(){
		return button2;
	}
	public View  button3(){
		return button3;
	}
	
}
